package com.candy.talk;

import javax.websocket.*;
import javax.websocket.server.ServerEndpoint;
import java.io.IOException;

/**
 * @author donglin
 * @Title:
 * @类名: Talk
 * @date 2020/10/13
 */
@ServerEndpoint("/abcd")
public class Talk {
    @OnOpen
    public void abcd1(){
        System.out.println("已经连接上了");
    }
    @OnError
    public void abcd2(Throwable throwable){

    }
    @OnClose
    public void abcd3(){

    }
    @OnMessage
    public void abcd4(Session session,String message){


    }






}
